package com.coolingme.battercake.decorator;

/**
 * 加鸡蛋的装饰器
 *
 * @author wangyue
 * @date 2020-09-15 23:34
 */
public class EggDecorator extends BattercakeDecorator {
    public EggDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected String getMsg() {
        return super.getMsg() + " 加一个鸡蛋";
    }

    @Override
    protected Double getPrice() {
        return super.getPrice() + 0.5;
    }
}
